import request from '@/utils/request'

// 查询浏览量列表
export function listViews(query) {
  return request({
    url: '/pets/views/list',
    method: 'get',
    params: query
  })
}

// 查询浏览量详细
export function getViews(viewId) {
  return request({
    url: '/pets/views/' + viewId,
    method: 'get'
  })
}

// 新增浏览量
export function addViews(data) {
  return request({
    url: '/pets/views',
    method: 'post',
    data: data
  })
}

// 修改浏览量
export function updateViews(data) {
  return request({
    url: '/pets/views',
    method: 'put',
    data: data
  })
}

// 删除浏览量
export function delViews(viewId) {
  return request({
    url: '/pets/views/' + viewId,
    method: 'delete'
  })
}
